function e(e, t) {
    if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
}

Object.defineProperty(exports, "__esModule", {
    value: !0
});

var t = function() {
    function e(e, t) {
        for (var n = 0; n < t.length; n++) {
            var s = t[n];
            s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), 
            Object.defineProperty(e, s.key, s);
        }
    }
    return function(t, n, s) {
        return n && e(t.prototype, n), s && e(t, s), t;
    };
}(), n = require("../common/constants.js"), s = function() {
    function s(t) {
        e(this, s), Object.assign(this, n.DEFAULT_PUSHER_CONFIG, {
            isVisible: !0
        }, t);
    }
    return t(s, [ {
        key: "getPusherContext",
        value: function(e) {
            return this.pusherContext || (this.pusherContext = wx.createLivePusherContext(e)), 
            this.pusherContext;
        }
    }, {
        key: "reset",
        value: function() {
            console.log("Pusher reset", this.pusherContext), this.pusherContext && (console.log("Pusher pusherContext.stop()"), 
            this.pusherContext.stop(), this.pusherContext = null), Object.assign(this, n.DEFAULT_PUSHER_CONFIG, {
                isVisible: !0
            });
        }
    } ]), s;
}();

exports.default = s;